.wrap {
  height: 650px;
}
.area {
  position: relative;
  height: 600px;
  overflow: auto;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  user-select: none;
  & > div {
    position: relative;
    z-index: 1;
  }
  //自定义滚动条样式
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  &::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    content: "图片裁剪区域";
    font-size: 20px;
    color: rgba(0, 0, 0, 0.1);
    z-index: 0;
  }
}
.preview {
  position: relative;
  padding: 10px;
  border-radius: 5px;
  background-color: #fafafa;
  height: 300px;
  & > div,
  & > canvas {
    position: relative;
    z-index: 1;
  }
  &::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    content: "图片预览区域";
    font-size: 20px;
    z-index: 0;
    color: rgba(0, 0, 0, 0.1);
  }
}
